
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/6/16
  Time: 16:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>this is find page!</title>
  <style>
    a{
      text-decoration: none;
      color:#fff;
    }
    .font-size20{
      font-size: 20px;color:#34852b;
    }

    td{
      width:100px;
      text-align: center;
      height:50px;

    }
    .div{
      margin-top: 30px;
      width:1200px;height:560px;
      border: 1px solid #ccc;
      margin-left: 50px;
      background-color: #edf8fe;
    }
    body{
      background-image:url(../../resources/image/1.jpg)
    }

    table{
      margin-left: 50px;
      width:90%;
      margin-top: 10px;
    }
    .find{
      width:60px;height:30px;margin-left: 30px;background-color:#1e8b10;border: 1px solid #1e8b10;color:#fff;line-height: 30px;
    }
    .find_name{
      height:30px;margin-left: 100px;margin-top: 20px;border-radius: 5%;
    }

    .return{
      width:100px;height:30px;display: inline-block;margin-left: 30px;text-align: center;line-height: 30px;background-color:#c5600f;
    }
  </style>
</head>
<body>
<div class="div">
<form action="/user/findUser" method="post">
  <input type="text" name="name" class="find_name">
  <input class="find" type="submit" value="查询"/>
</form>
  <table>
    <tr>
      <td class="font-size20">学生序号</td>
      <td class="font-size20">用户名</td>
      <td class="font-size20">密码</td>
      <td class="font-size20">个人简介</td>
    </tr>
  <c:forEach items="${users}" var="us">
    <tr>
        <%--us.username注意这里username属性是从list集合里面从数据库查询而来，所以要根据数据库的属性来取值--%>
      <td><c:out value="${us.userId}"/></td>
      <td><c:out value="${us.username}"/></td>
      <td style="width:120px"><c:out value="${us.password}"/></td>
      <td style="width: 400px;text-align: left"><c:out value="${us.description}"/></td>
    </tr>
  </c:forEach>
  <tr>
    <td style="text-align: center; " colspan="4">
      <span class="return"><a href="/user/users">返回</a></span>
    </td>
  </tr>
</table>
  </div>
</body>
</html>
